﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ManageInspectUserInfo.aspx.cs" Inherits="NJCORS.forms.ManageInspectUserInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
   <link rel="Stylesheet" type="text/css" href="../themes/css/global.css" />
   <script type="text/javascript" src="../js/click2.js"></script>
</head>
<body>
     <form id="form1" runat="server">
    <div class="bodydiv">
    <div class="infoheader">
                <div><img alt="" src="../themes/images/add.gif"  width="10" height="10" />
         <asp:LinkButton ID="AddRecord" runat="server" onclick="AddRecord_Click">添加用户</asp:LinkButton></div>
    <span>巡检用户管理</span>
    </div>
    <div id="Data">
      <asp:GridView ID="griddata"  CssClass="griddata" runat="server" AutoGenerateColumns="False" 
            onrowupdating="griddata_RowUpdating" 
            onrowdatabound="griddata_RowDataBound" onrowdeleting="griddata_RowDeleting" 
            onrowediting="griddata_RowEditing" 
            onrowcancelingedit="griddata_RowCancelingEdit" >
            <Columns>
                <asp:TemplateField HeaderText="用户名称">
                    <ItemTemplate>
                        <asp:Label ID="lbInspectUserName" runat="server" Text='<%# Bind("InspectUserName") %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="txbInspectUserName" runat="server" Text='<%# Bind("InspectUserName") %>' CssClass="textbox240"></asp:TextBox>
                    </EditItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="用户密码">
                    <ItemTemplate>
                        <asp:Label ID="lbInspectUserPassword" runat="server" Text='<%# Bind("InspectUserPassword") %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="txbInspectUserPassword" runat="server" Text='<%# Bind("InspectUserPassword") %>' CssClass="textbox240"></asp:TextBox>
                    </EditItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="巡检范围">
                    <ItemTemplate>
                        <asp:Label ID="lbInspectUserScope" runat="server" Text='<%# Bind("InspectUserScope") %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="txbInspectUserScope" runat="server" Text='<%# Bind("InspectUserScope") %>' CssClass="textbox240"></asp:TextBox>
                    </EditItemTemplate>
                </asp:TemplateField>                
                
                
                <asp:CommandField ShowEditButton="True" EditText="修改" >
                </asp:CommandField>
                <asp:TemplateField ShowHeader="False">
                    <ItemTemplate>
                        <asp:LinkButton ID="btndelete" runat="server" CausesValidation="False" 
                            CommandName="Delete" Text="删除"></asp:LinkButton>
                    </ItemTemplate>
                    <EditItemTemplate>
                    </EditItemTemplate>
                </asp:TemplateField>
            </Columns>
            <RowStyle CssClass="GridViewRowStyle" />
            <AlternatingRowStyle  CssClass="GridViewAlternatingRowStyle" />
            <EmptyDataTemplate>
                 <div class="divempty">
                <span >没有符合条件的巡检用户信息！</span>
                </div>
            </EmptyDataTemplate>
        </asp:GridView>
    </div>
    

                <div class="errormessage" id="diverrormsg" runat="server" style="display:none">
            <asp:Label ID="lberrormsg" runat="server" Text="test"></asp:Label>
        </div>
        </div>
    </form>
</body>
</html>
